package hanjoapp.client;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Transient;
import javax.persistence.Id;
import javax.persistence.Entity;

@SuppressWarnings("serial")
@Entity
public class User implements Serializable
{
	@Id Long id;
    String login;
    String email;
    String firstName;
    String lastName;
    String password;
    Date date;
    @Transient String doNotPersist;

    @SuppressWarnings("unused")
	private User() {}
    
    public User(String login, String password, String email, String firstName, String lastName)
    {
        this.login = login;
        this.password = password;
        this.email = email;
        this.firstName = firstName;
        this.lastName = lastName;
        this.date = new Date();
    }
    
    public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getLogin() {
		return login;
	}

	public void setLogin(String login) {
		this.login = login;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getFirstName() {
		return firstName;
	}

	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}

	public String getLastName() {
		return lastName;
	}

	public void setLastName(String lastName) {
		this.lastName = lastName;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}
}